
from django.conf.urls import url
from django.contrib import admin
from apps.recruit import views

urlpatterns = [
    # 1. 获取推荐职位
    url(r'recruits/search/recommend/$', views.JobsRecommend.as_view()),
    # 2. 获取最新职位
    url(r'recruits/search/latest/$', views.LatestJobs.as_view()),
    # 3. 获取热门企业
    url(r'enterprise/search/hotlist/$', views.HotCompanies.as_view()),
    # 4. 获取热门城市
    url(r'city/hotlist/$', views.HotCities.as_view()),
    # 5. 职位搜索
    url(r'recruits/search/city/keyword/$', views.SearchJobs.as_view()),
    # 6. 职位详情
    url(r'recruits/(?P<pk>\d+)/$', views.JobDetails.as_view()),
    # 7. 职位浏览 访问次数
    url(r'recruits/(?P<pk>\d+)/visit/$', views.JobDetails.as_view()),
    # 8. 职位收藏
    url(r'recruits/(?P<pk>\d+)/collect/$', views.JobDetails.as_view()),
    # 9. 企业详情
    url(r'enterprise/(?P<pk>\d+)/$', views.CompanyDetails.as_view()),
    # 10 企业浏览
    url(r'enterprise/(?P<pk>\d+)/visit/$', views.CompanyDetails.as_view()),
    # 11 企业收藏
    url(r'enterprise/(?P<pk>\d+)/collect/$', views.CompanyDetails.as_view()),
    # 12 取消收藏
    url(r'enterprise/(?P<pk>\d+)/cancelcollect/$', views.DelLikeView.as_view()),

]
